Skip to content

Add files via upload#5

Open
GAS53 wants to merge 1 commit intomainfrom
lesson_4
Open

Add files via upload#5
GAS53 wants to merge 1 commit intomainfrom
lesson_4

Conversation

@GAS53
Copy link
Copy Markdown
Owner

@GAS53 GAS53 commented Apr 2, 2022

No description provided.

Copy link
Copy Markdown

@Akseonov Akseonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

все отлично, максимум придрался к стилю, больше не на что)

Comment on lines +14 to +15
'десятки': (digit[1] != undefined) ? (digit[1]) : (0),
'сотни':(digit[2] != undefined) ? (digit[2]) : (0)}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

( ) - эти скобки избыточны, да и ставят их только в условии, до ?

for (var i in this.items){
if (i != undefined) {this.summ += this.items[i].cost}
}
return this.summ
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

должно быть выровнено с for (еще 4 пробела)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants